#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2024/2/1 14:00
# @Author  : xinyingjie
# @File    : config.py.py
# @Description :


KAFKA_HOST = "10.100.12.58:9092"
PRE_DATA_TOPIC = "predata"
ALL_DATA_TOPIC = "alldata"
AI_DATA_TOPIC = "aidata"
SUMO_TOPIC = "sumo-data"
# 全局中心点
GLOBAL_POLYGON_CENTER = [(1612, 866), (1545, 657),
                         (1977, 865), (1994, 1006)]

MAX_SPEED = int(100 / 3.6)
MIN_SPEED = int(60 / 3.6)
CAR_DEFAULT_SPEED = 24
TRUCK_DEFAULT_SPEED = 20
SPECIAL_DEFAULT_SPEED = 18
# 经度逐渐减少
# 感知 第一种出现位置直接发车
# 第二个门架位置进行删车操作

erId_dict = {
    "S001933030055210010": {"lon": 121.159129, "lat": 28.23522},
    "S001933030055210011": {"lon": 121.154497, "lat": 28.238024},  # 删除  all-data没有上报这条数据，就删除
    "S001933030055210012": {"lon": 121.15025, "lat": 28.239659},
    "S001933030055210013": {"lon": 121.144683, "lat": 28.241137},
    "S001933030055210014": {"lon": 121.139778, "lat": 28.24239},
    "S001933030055210015": {"lon": 121.135468, "lat": 28.243534},
    "S001933030055210016": {"lon": 121.128253, "lat": 28.244775},
    "S001933030055210017": {"lon": 121.124437, "lat": 28.244834}}

type_change = {1: 1, 2: 12, 3: 3}
route_list = ['-6', '-3', '-14', '-0', '-7', '-2', '-11', '-13', '-10', '-5', '-9', '-8', '-1']
